home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
HENSA
/
UTILITIES
/
TASKBASIC.ARC
/
!TaskBASIC
/
!Help
< prev
next >
Wrap
Text File
|
1996-01-29
|
2KB
|
59 lines
TaskBASIC
=========
By Reuben Thomas
TaskBASIC introduces a new filetype for BASIC files that causes them to run in
a task window when double-clicked or *Run.
TaskBASIC is public domain, and comes with no warranty.
Usage
~~~~~
Put !TaskBASIC in your boot sequence (i.e. make sure it is Run, Filer_Run, or
best, Filer_Booted). Now, setting the type of a BASIC file to &0ba (or
"TaskBAS") will cause the program to run in a task window when it is run. The
load action (using *Load) is the same as for ordinary BASIC files.
If you use Zap (and if not, why don't you?), you should add the filetype 0BA
(name Task BASIC) to the filetypes list to ensure that TaskBAS files are loaded
in BASIC mode for editing. Other good editors (i.e. not Edit!) should be able to
be configured similarly.
Why I wrote it
~~~~~~~~~~~~~~
When I switched from Menon to Director, I wanted to retain the ability to run
BASIC programs in a task window (with Menon, you hold down ALT while double-
clicking on the program). It seems to me that most BASIC programs you use
i) Always running normally (e.g. if they take over the screen), or
ii) As *-commands, hence running normally from a task window or the command
line, or
iii) Running in a task window every time.
In cases i and ii the normal behaviour of a BASIC program when invoked by
double-clicking or from the command-line is sufficient. It is for case iii that
TaskBASIC caters. When Filer_Booted ("seen" by the Filer) it simply installs
icons for the filetype &0BA, and load and run actions for that filetype that are
identical to those for BASIC programs, except that they are performed in a task
window.
The filetype
~~~~~~~~~~~~
Filetype &0BA is a User filetype. If you use this type for anything else, you
should rename the sprites in files !Sprites and !Sprites22 and change the
occurrences of 0BA in !Boot appropriately.
The author
~~~~~~~~~~
I am contactable until July 1998 at least as
rrt1001@cam.ac.uk